package io.gitee.zhangbinhub.admin.oauth.po

import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import org.noear.solon.validation.annotation.NotBlank
import org.noear.solon.validation.annotation.NotNull

@ApiModel("用户信息参数")
data class UserPo(
    @ApiModelProperty(name = "用户ID")
    var id: String? = null,
    @ApiModelProperty(name = "用户名称", required = true)
    @field:NotBlank(message = "用户名称不能为空")
    var name: String? = null,
    @ApiModelProperty(name = "登录账号", required = true)
    @field:NotBlank(message = "登录账号不能为空")
    var loginNo: String? = null,
    @ApiModelProperty(name = "手机号")
    var mobile: String? = null,
    @ApiModelProperty(name = "用户级别", required = true)
    @field:NotNull(message = "用户级别不能为空")
    var levels: Int? = null,
    @ApiModelProperty(name = "是否启用", required = true)
    @field:NotNull(message = "是否启用不能为空")
    var enabled: Boolean? = null,
    @ApiModelProperty(name = "序号", required = true)
    var sort: Int = 0,
    @ApiModelProperty(name = "所属机构ID")
    var orgIds: MutableList<String> = mutableListOf(),
    @ApiModelProperty(name = "可管理机构ID")
    var orgMngIds: MutableList<String> = mutableListOf(),
    @ApiModelProperty(name = "所属角色ID")
    var roleIds: MutableList<String> = mutableListOf(),
    @ApiModelProperty(name = "机构名称，查询时使用")
    var orgName: String? = null,
    @ApiModelProperty(name = "角色名称，查询时使用")
    var roleName: String? = null
)
